﻿using EventBus.Abstractions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GraphQLSample.Application.DomainEventHandlers
{
    public class UserCreatedEvent
        : IEvent
    {
        public string Name { get; set; }
        public UserCreatedEvent(string name)
        {
            Name = name;
        }
        public Guid Id => Guid.NewGuid();

        public DateTime TimeStamp => DateTime.UtcNow;
    }
}
